﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Groupon.Net Usage Sample Website</title>
</head>
<body style="margin:0;background-color:#eee;font-family: Segoe UI;font-size:9pt;">
    <form id="form1" runat="server">
    <div style="margin:0 auto;width:960px;background-color:#fff;">
    <div style="width:950px;font-size:16pt;padding:10px 0 10px 10px;background-color:#76A045;color:#fff;">
        Groupon.NET Sample Web Application
    </div>
    <div style="width:960px;">
        <asp:UpdateProgress runat="server" ID="mainUpdateProgress"><ProgressTemplate>Working ...</ProgressTemplate></asp:UpdateProgress>
        <asp:ScriptManager runat="server" ID="mainScriptManager"></asp:ScriptManager>
        <div style="width:950px;padding:4px 10px 4px 10px;float:left;background-color:#fff;">
        <b>Division: </b><asp:DropDownList runat="server" ID="divisionList" AutoPostBack="true" />
        </div>
        <div style="width:300px;float:left;background-color:#fff;">
        <asp:UpdatePanel runat="server" ID="dealsUpdatePanel">
            <ContentTemplate>
                <asp:Repeater runat="server" ID="dealsRepeater">
                    
                    <ItemTemplate>
                    <div style="width:286px;padding:4px 10px 10px 4px;text-align:justify;background-color:#fff;clear:both;">
                        <div style="width:50px;float:left;">
                            <asp:Image runat="server" ID="smallImage" />
                        </div>
                        <div style="width:226px;float:right;">
                            <asp:Label runat="server" ID="titleLabel" />
                        </div>
                        <div style="width:143px;clear:both;float:left;">
                            <asp:HyperLink runat="server" ID="moreInfoLink" Text="More Information" />&nbsp
                        </div>
                        <div style="width:133px;float:right;text-align:right;">
                        <asp:LinkButton runat="server" ID="viewLinkButtom" Text="View" CommandName = "View" CommandArgument='<%#Eval("Id")%>' />
                        </div>
                    </div>
                    </ItemTemplate>
                </asp:Repeater>
   
            </ContentTemplate>
        </asp:UpdatePanel>
        </div>
        <div style="width:640px;padding:0 10px 0 10px;float:right;background-color:#fff;">
        <asp:UpdatePanel runat="server" ID="dealUpdatePanel">
            <ContentTemplate>
                <h1><asp:Label runat="server" ID="titleLabel" /></h1>
                <div style="text-align:justify;width:440px;float:left;padding:0 10px 0 10px;">
                <asp:Image runat="server" ID="smallImage" />
                <br />
                <asp:Literal runat="server" ID="pitchLiteral" />
                </div>
                <div style="width:160px;padding:0 10px 0 10px;float:right;background-color:#fff;">
                <asp:hyperlink runat="server" ID="merchantWebsite" />
                <br />
                <asp:Repeater runat="server" ID="optionsRepeater">
                    <ItemTemplate>
                        <br />
                        <b><asp:label runat="server" ID="Label2" Text='<%#Eval("Title") %>' /></b>
                        <br />
                        Price: <b><asp:label runat="server" ID="Label4" Text='<%#Eval("Price.FormattedAmount") %>' /></b>
                        <br />
                        Discount: <b><asp:label runat="server" ID="Label1" Text='<%#Eval("Discount.FormattedAmount") %>' /></b>
                        <br />
                        Minimum purchase: <b><asp:label runat="server" ID="minimumPurchase" Text='<%#Eval("MinimumPurchaseQuantity") %>' /></b>
                        <br />
                        Value: <b><asp:label runat="server" ID="Label3" Text='<%#Eval("Value.FormattedAmount") %>' /></b>
                    </ItemTemplate>
                    <SeparatorTemplate><br /></SeparatorTemplate>
                </asp:Repeater>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        </div>
    </div>
    </div>
    </form>
</body>
</html>
